4.5 Setting up the database

This section contains information about setting up your database.

4.5.1 Database configuration considerations

SIU references: SIU-097, SIU-098, SIU-099, SIU-126.

If you are creating the MyID database using the installation program, and have selected the Windows authentication option, make sure the account you use to install the software has the correct permissions to create a database on your SQL Server.

If you are using SQL Server authentication (SQL Azure environments only), make sure the accounts you specify for the main MyID database and the authentication database have the appropriate permissions on your SQL Server, and that you have created your databases before installing MyID; see the Prerequisites section in the Microsoft Azure Integration Guide.

If you are installing MyID into an already-created database (for example, when upgrading an existing system), you do not need user permissions to create a database; however, you do need permissions to alter the schema. This means that you can remove the dbcreator permission from the installation user, as long as you make sure that the user has database-level db_owner permission instead.

Make sure your SQL Server is using English (United States) as the language. MyID supports only English (United States) for the connection to SQL Server. You can view the language used in SQL Server Management Studio – right-click the database, then select Properties from the pop-up menu.

See your Microsoft SQL Server documentation for further details.

4.5.2 Installing the database software

SIU references: SIU-092, SIU-093, SIU-096, SIU-296.

To install the database software:

  1. Install the following SQL Server packages on the MyID database server:

    • Database Engine Services.

      Note: You must install the SQL Server Full Text Search option. To confirm whether Full Text Search is installed, you can run the following query:

      SELECT FULLTEXTSERVICEPROPERTY('IsFullTextInstalled')

      If this query returns 1, Full Text Search is installed. If this returns 0, you must add the feature before attempting to install MyID.

      Note: Under some circumstances, for example when setting up mirroring, the Full Text Search may stop indexing. See your Microsoft documentation for information on re-indexing the database.

    • Client Tools Connectivity.
  2. On the MyID application server, install the following:

    • Microsoft OLE DB Driver 18 for SQL Server (MSOLEDBSQL).

      This driver is available from Microsoft.

      The current release has been tested with driver version 18.3. If you want to use a different version of the driver, contact customer support quoting reference SUP-324.

    • SQL Server Native Client 11

      This is available in the SQL Server Feature Pack.

    You must also make sure that the OLE DB Driver and Native Client are installed on the PC on which you run the database component of the installation program. For simplicity, you can run the database component of the installation program from the MyID application server.

    If you are using the standalone authentication service (web.oauth2.ext) you must make sure that the OLE DB Driver and Native Client are installed on the server onto which you want to install this service.

Note: Install only one instance of the MyID database. You can choose to install the database from the database server or the application server, but do not run the installation from both.